package com.eascs.workflow.email.dubbo;

import javax.annotation.Resource;

import com.alibaba.dubbo.config.annotation.Service;
import com.eascs.notify.constant.ModelResult;
import com.eascs.notify.mail.MailNotifier;
import com.eascs.notify.mail.MailNotifyRequest;
import com.eascs.notify.mail.MailNotifyResponse;

@Service
public class MailNotifierDubboImpl implements MailNotifier{


	@Resource(name="MailService")
	MailNotifier MailService;
	
	/*
	 * 邮件发送的实现
	 * 必填项：
	 * param:请求系统编码(systemCode)--SystemType、发送类型(mailSendType)--MailSendType、邮件标题(title)、邮件内容(content)
	 * 接收人(recipientTo)、抄送人(recipientCc)、暗抄人(recipientBcc)三项目至少传入一个
	 * 
	 * 非必填项：
	 * 邮件类型编码(customTypeCode)(调用系统自定义)、bizCode(业务编码),附件,
	 */
	@Override
	public ModelResult<MailNotifyResponse> notify(MailNotifyRequest mailNotifyRequest) {
		return MailService.notify(mailNotifyRequest);
	}
	
	

}
